#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>
#include<math.h>
int main()
{
	int n = 0;
	int ret = 0;
	int i = 0;
	scanf("%d", &n);
	while(n)
	{
		int w = n % 10;
		if(n%2==0)
		{
			w = 0;
		}
		else
		{
			w = 1;
		}
		ret += w * pow(10, i++);
		n /= 10;
	}
	printf("%d\n", ret);

	return 0;
}